<p>A <code>catch</code> clause that only rethrows the caught exception has the same effect as omitting the <code>catch</code> altogether and letting
    it bubble up automatically, but with more code and the additional detriment of leaving maintainers scratching their heads.</p>
<p>Such clauses should either be eliminated or populated with the appropriate logic.</p>
<h2>Noncompliant Code Example</h2>
<pre data-diff-id="1" data-diff-type="noncompliant">try {
  doSomething();
} catch (ex) {  // Noncompliant
  throw ex;
}
</pre>
<h2>Compliant Solution</h2>
<pre data-diff-id="1" data-diff-type="compliant">try {
  doSomething();
} catch (ex) {
  console.err(ex);
  throw ex;
}
</pre>

<h2>Noncompliant Code Example</h2>
<pre data-diff-id="2" data-diff-type="noncompliant">try {
  doSomethingElse();
} catch (ex) {  // Noncompliant
  throw ex;
}
</pre>
<h2>Compliant Solution</h2>
<pre data-diff-id="2" data-diff-type="compliant">try {
  doSomethingElse();
} catch (ex) {
  console.err(ex);
  throw ex;
}
</pre>